Eric Abrahamsen [Thu, 19 Sep 2019 17:36:42 +0000 (10:36 -0700)]
Only use Gnus registry for formatting when registry is loaded
See bug #36903
* lisp/gnus/gnus-registry.el (gnus-registry-article-marks-to-chars):
(gnus-registry-article-marks-to-names): In some circumstances it's
possible for the user's summary line format spec to include
registry-specific code, while the registry itself isn't actually
loaded. Make sure the database is actually a hashtable before
accessing it.
Eli Zaretskii [Thu, 19 Sep 2019 14:10:00 +0000 (17:10 +0300)]
Fix calls to insert-*-hooks when JIT font lock is active
* src/insdel.c (signal_after_change): Save and restore
interval_insert_behind_hooks and
interval_insert_in_front_hooks across calls to various other
hooks, to prevent their clobbering by those other hooks.
(Bug#37455)
Lars Ingebrigtsen [Thu, 19 Sep 2019 14:07:58 +0000 (16:07 +0200)]
Minor svg wrap tweak
* lisp/net/shr.el (svg--wrap-svg): Add the size to the wrapper to
avoid having the SVG images shrink (bug#37159).
Lars Ingebrigtsen [Thu, 19 Sep 2019 13:58:34 +0000 (15:58 +0200)]
Further fix-ups for SVG wrapping in shr
* lisp/net/shr.el (svg--wrap-svg): Add the size to the wrapper to
avoid having the SVG images shrink (bug#37159).
Lars Ingebrigtsen [Thu, 19 Sep 2019 12:39:34 +0000 (14:39 +0200)]
Fix :version in recent commit
* lisp/pcmpl-gnu.el (pcmpl-gnu-makefile-includes): Fix :version.
Lars Ingebrigtsen [Wed, 18 Sep 2019 14:01:56 +0000 (16:01 +0200)]
Fix a bug in callback functions in align-areas
* lisp/align.el (align-areas): When given a callback function and
JUSTIFY, pick out the correct parameters (bug#30139). Suggested
by "John Wiegley" <johnw@gnu.org>.
Paul Eggert [Thu, 19 Sep 2019 07:59:59 +0000 (00:59 -0700)]
Also prefer .emacs.d if .emacs exists
Problem reported by Katsumi Yamaoka (Bug#37456).
* lisp/startup.el (startup--xdg-or-homedot): Also
prefer .emacs.d if a traditional .emacs file exists.
Paul Eggert [Thu, 19 Sep 2019 07:19:11 +0000 (00:19 -0700)]
Default PICKY_ACCESS to false on non-MS
* src/fileio.c (PICKY_EACCES) [!DOS_NT]: Default to false.
Paul Eggert [Thu, 19 Sep 2019 06:53:46 +0000 (23:53 -0700)]
Omit some overenthusiastic file-truename calls
Problem reported by Tino Calancha (Bug#37445).
* src/emacs.c (init_cmdargs): Call file-truename only if
needed, i.e., if invocation-directory ends in "/i386/" on
WINDOWSNT.
* src/lread.c (readevalloop): If the sourcename is not
absolute, make it absolute. There is no need to convert
non-absolute files into truenames, since absolute files are
not converted into truenames.
(init_lread): Do not convert source-directory into a truename
at startup. There is no need to do so in a dumped Emacs since
an absolute file name suffices. The source directory might
not even exist any more, or might have been replaced by an
interloper who takes advantage of the truename calculation.
(syms_of_lread): Remove Qfile_truename; no longer needed.
Matt Bisson [Thu, 19 Sep 2019 06:48:43 +0000 (08:48 +0200)]
Fix ignored Motif scrollbar resources (Bug#37359)
* src/xterm.c (x_create_toolkit_scroll_bar): On Motif
scrollbars, "foreground" has no meaning, while "background"
means the truck and arrow colors, and "trough" means the
background of the entire widget. This fix hooks up the Emacs
scrollbar "foreground" color to the XmNbackground resource
and the "background" color to XmNtroughColor which is more in
line with how Xaw scrollbars behave.
Copyright-paperwork-exempt: yes
Juanma Barranquero [Thu, 19 Sep 2019 02:32:25 +0000 (04:32 +0200)]
lisp/*.el, src/*.c: Fix typos in docstrings
* lisp/apropos.el (apropos-do-all):
* lisp/auth-source-pass.el (auth-source-pass--select-from-entries):
* lisp/auth-source.el (auth-source-user-or-password):
* lisp/calc/calc-forms.el (math-tzone-names):
* lisp/calendar/diary-lib.el (diary-face-attrs)
(diary-mark-entries-1):
* lisp/cedet/cedet-files.el (cedet-files-list-recursively):
* lisp/cedet/ede.el (ede-constructing, ede-deep-rescan):
* lisp/cedet/ede/cpp-root.el (ede-cpp-root-header-file-p):
* lisp/cedet/ede/proj.el (ede-proj-target-makefile):
* lisp/cedet/inversion.el (inversion-check-version)
(inversion-test):
* lisp/cedet/mode-local.el (mode-local-map-file-buffers):
* lisp/cedet/semantic/complete.el (semantic-displayer-ghost):
* lisp/cedet/semantic/db-find.el (semanticdb-find-translate-path-default):
* lisp/cedet/semantic/db.el (semanticdb-table)
(semanticdb-search-system-databases):
* lisp/cedet/semantic/imenu.el (semantic-imenu-index-directory):
* lisp/cedet/semantic/java.el (semantic-java-doc-keywords-map):
* lisp/cedet/semantic/lex-spp.el (semantic-lex-spp-use-headers-flag):
* lisp/cedet/semantic/lex.el (semantic-lex-make-keyword-table)
(semantic-lex-make-type-table, semantic-lex-debug-analyzers):
* lisp/cedet/semantic/tag-ls.el (semantic-tag-abstract-p)
(semantic-tag-leaf-p, semantic-tag-static-p)
(semantic-tag-prototype-p):
* lisp/dnd.el (dnd-open-remote-file-function, dnd-open-local-file):
* lisp/emacs-lisp/eieio-opt.el (eieio-build-class-alist)
(eieio-read-class, eieio-read-subclass):
* lisp/emacs-lisp/generator.el (cps--replace-variable-references)
(cps--handle-loop-for):
* lisp/erc/erc-dcc.el (erc-dcc-list, erc-dcc-member, erc-dcc-server)
(erc-dcc-auto-mask-p, erc-dcc-get-file, erc-dcc-chat-accept):
* lisp/eshell/em-pred.el (eshell-pred-file-type):
* lisp/faces.el (defined-colors-with-face-attributes):
* lisp/font-core.el (font-lock-mode):
* lisp/frame.el (frame-restack):
* lisp/net/shr.el (shr-image-animate):
* lisp/org/org-agenda.el (org-agenda-change-all-lines)
(org-agenda-today-p):
* lisp/org/org-id.el (org-id-get):
* lisp/org/org.el (org-highlight-latex-and-related)
(org--valid-property-p):
* lisp/org/ox-beamer.el (org-beamer--get-label):
* lisp/org/ox-latex.el (org-latex--caption-above-p):
* lisp/org/ox-odt.el (org-odt--copy-image-file)
(org-odt--copy-formula-file):
* lisp/org/ox.el (org-export-with-timestamps):
* lisp/progmodes/verilog-mode.el (verilog-indent-declaration-macros):
* lisp/ses.el (ses-file-format-extend-parameter-list):
* lisp/term.el (ansi-term):
* lisp/textmodes/bibtex.el (bibtex-no-opt-remove-re)
(bibtex-beginning-of-first-entry, bibtex-autokey-get-title)
(bibtex-read-key, bibtex-initialize):
* lisp/textmodes/flyspell.el (flyspell-word):
* lisp/view.el (view-mode-exit):
* src/composite.c:
* src/floatfns.c (Fisnan): Fix typos in docstrings.
Stephen Leake [Thu, 19 Sep 2019 00:43:28 +0000 (17:43 -0700)]
Stephen Leake [Thu, 19 Sep 2019 00:42:30 +0000 (17:42 -0700)]
Enhance 'pcomplete/make' to complete on targets in included makefiles
* lisp/pcmpl-gnu.el (pcmpl-gnu-makefile-includes): New.
(pcmpl-gnu-make-targets): New, factored out of pcmpl-gnu-make-all-targets.
(pcmpl-gnu-make-includes): New.
(pcmpl-gnu-make-all-targets): Use new functions.
Juri Linkov [Wed, 18 Sep 2019 22:12:36 +0000 (01:12 +0300)]
* lisp/isearch.el (isearch-lazy-highlight-update): Remember timer object
in isearch-lazy-highlight-timer to cancel it in lazy-highlight-cleanup.
(isearch-done): No need to set isearch-lazy-highlight-start to nil -
it used to reset lazy-highlight loop like isearch-lazy-highlight-window-start,
but now other packages set isearch-lazy-highlight-last-string to nil to reset
lazy-highlight loop.
Eli Zaretskii [Wed, 18 Sep 2019 18:46:11 +0000 (21:46 +0300)]
Fix loading .elc files on MS-Windows
* src/lread.c (Fload): Don't clobber 'found' if the .el file
was not found, as it is used by WINDOWSNT later on.
Phillip Lord [Tue, 4 Jun 2019 14:02:33 +0000 (15:02 +0100)]
Improve logic for dependencies checking
* admin/nt/dist-build/build-dep-zips.py:
Lars Ingebrigtsen [Wed, 18 Sep 2019 13:21:25 +0000 (15:21 +0200)]
Fix up the previous mh-mime warning suppression
* lisp/mh-e/mh-acros.el (mh-dlet*): Suppress warnings about
prefix-less bindings.
* lisp/mh-e/mh-mime.el (mh-insert-mime-security-button): Remove
the warning removal here.
(mh-insert-mime-button): And here.
Eli Zaretskii [Wed, 18 Sep 2019 12:55:08 +0000 (15:55 +0300)]
Improve support of the Tai-Viet script
* lisp/language/tai-viet.el ("TaiViet"): Update the doc
string. Suggested by Jim Brase <jim_brase@sil.org>.
(Bug#5806)
* etc/HELLO: Add a Tai Viet entry.
Paul Eggert [Wed, 18 Sep 2019 12:17:03 +0000 (05:17 -0700)]
Out-of-datedness .elc check is merely a file test
* src/fileio.c (file_test_errno): Now extern.
* src/lread.c (Fload): Use file_test_errno instead,
since this is really just a file test (the attributes
are not given to the user).
Eli Zaretskii [Wed, 18 Sep 2019 12:15:33 +0000 (15:15 +0300)]
Merge branch 'master' of git.savannah.gnu.org:/srv/git/emacs
Eli Zaretskii [Wed, 18 Sep 2019 12:14:15 +0000 (15:14 +0300)]
Fix the MS-Windows build broken by recent errno changes
* src/fileio.c (file_directory_p): If the file exists, but is
not a directory, set errno to ENOTDIR, like the Posix branch
does; openp expects that.
Michael Albinus [Wed, 18 Sep 2019 12:12:54 +0000 (14:12 +0200)]
Simplify tramp-tests.el check for owncloud/nextcloud
* test/lisp/net/tramp-tests.el (tramp-test11-copy-file):
Simplify check for owncloud/nextcloud connections.
Michael Albinus [Wed, 18 Sep 2019 12:11:55 +0000 (14:11 +0200)]
Add extra args for zsh in Tramp
* doc/misc/tramp.texi (Remote shell setup): New subsection
"Changing the default remote shell".
* lisp/net/tramp-sh.el (tramp-sh-extra-args): Add entry for zsh.
Paul Eggert [Wed, 18 Sep 2019 11:21:19 +0000 (04:21 -0700)]
Be less picky about EACCES in file test predicates
Problem reported by Tino Calancha (Bug#37445) and others.
* src/fileio.c (PICKY_EACCES): New constant, false by default.
(file_test_errno): Ignore EACCES if not picky.
(check_file_access): Investigate EACCES problems further
if picky.
Paul Eggert [Wed, 18 Sep 2019 10:06:10 +0000 (03:06 -0700)]
Fix permission-denied issue in MS-Windows startup
* src/callproc.c (init_callproc): Use file_access_p rather
than Ffile_exists_p during startup (Bug#37445).
Paul Eggert [Wed, 18 Sep 2019 02:18:14 +0000 (19:18 -0700)]
Improve reporting of I/O, access errors
Signal an error for file-oriented errors that are not tame
errors like ENOENT and ENOTDIR (Bug#37389).
Do this for primitives exposed to Lisp; the lower
level internal C API merely makes errno values available
to higher-level C code.
* doc/lispref/files.texi (Testing Accessibility)
(File Attributes, Extended Attributes): Do not say that the
functions return nil when the return value cannot be determined.
* etc/NEWS: Mention the change.
* src/dired.c (Ffile_attributes): Fix doc string confusion
about opening a file vs getting its attributes.
(file_attributes): Signal serious errors.
* src/fileio.c (check_existing, check_executable)
(check_writable): Remove. All callers changed to use
check_file_access or file_access_p.
(file_access_p, file_metadata_errno, file_attribute_errno)
(file_test_errno, check_file_access, check_emacs_readlinkat):
New functions.
* src/fileio.c (Ffile_executable_p, Ffile_readable_p)
(Ffile_name_case_insensitive_p, Frename_file, Ffile_exists_p):
(Ffile_symlink_p, Ffile_directory_p)
(Ffile_accessible_directory_p, Ffile_regular_p)
(Ffile_selinux_context, Ffile_acl, Ffile_modes)
(Ffile_newer_than_file_p, Fset_visited_file_modtime)
(Ffile_system_info):
* src/filelock.c (unlock_file, Ffile_locked_p):
* src/lread.c (Fload):
Signal serious errors.
* src/fileio.c (Ffile_writable_p): Remove unnecessary CHECK_STRING.
(emacs_readlinkat): Now static.
* src/filelock.c (current_lock_owner, lock_if_free): Return a
positive errno on error, and the negative of the old old value
on success. All callers changed.
* src/lread.c (openp): Propagate serious errno values to caller.
Jimmy Aguilar Mena [Tue, 17 Sep 2019 20:00:21 +0000 (22:00 +0200)]
Substituted deprecated WebKitGTK+ api.
* src/xwidget.c : Substituted WebKitGTK+ API calls and use
JavaScriptCore GLib API instead.
Tino Calancha [Tue, 17 Sep 2019 16:07:50 +0000 (18:07 +0200)]
Fix an assignment to free variable warning
It fixes a bug introduced by commit
'query-replace-regexp undo: Update next-replacement after undo'
(
30c4f35a6fc8a6507930923766c3126ac1c2063f)
See https://lists.gnu.org/archive/html/emacs-devel/2019-09/msg00364.html
* lisp/replace.el(perform-replace): Rename variable
to next-replacement-replaced.
Juanma Barranquero [Tue, 17 Sep 2019 14:29:23 +0000 (16:29 +0200)]
* src/w32fns.c (Fw32_read_registry): Doc fix
Lars Ingebrigtsen [Tue, 17 Sep 2019 12:18:52 +0000 (14:18 +0200)]
Suppress some warnings about un-prefixed dynamic variables
* lisp/mh-e/mh-mime.el (mh-insert-mime-security-button): Suppress
warnings about un-prefixed dynamic variables.
(mh-insert-mime-button): Ditto.
Lars Ingebrigtsen [Tue, 17 Sep 2019 12:11:53 +0000 (14:11 +0200)]
Touch up naming of ipv6-expand
* lisp/net/net-utils.el (nslookup--ipv6-expand): Rename to avoid
make prefix more regular.
(nslookup-host-ipv6): Rename call.
W. Garrett Mitchener [Tue, 17 Sep 2019 11:56:28 +0000 (13:56 +0200)]
Updated to match more recent versions of Praat.
* lisp/leim/quail/ipa-praat.el ("ipa-praat"): Update to match
more recent versions of Praat (bug#36198).
- \rh was used for ram's horns (a vowel) and rhoticity hook (a
diacritic). Praat uses \hr for the hook, so I made that changed.
- \e3v for the slightly rounded diacritic seems to have been a typo
related to the use of e in the example. Changed it to \3v to match
Praat.
- Added examples to the table of tone diacritics
- Added \^h for superscript h
- Added \^H for superscript h with hook
- Added \^w for superscript w (labialization)
- Added \^j for superscript j (palatalization)
- Added \^g for superscript symbol (velarization)
- Added \^9 for superscript symbol (pharyngealization)
Lars Ingebrigtsen [Tue, 17 Sep 2019 11:54:19 +0000 (13:54 +0200)]
Update doc marker -- smtpmail-retries is documented
Eli Zaretskii [Tue, 17 Sep 2019 11:19:54 +0000 (14:19 +0300)]
Improve font lookup on MS-Windows
* src/w32font.c (struct font_callback_data): New member
'known_fonts'.
(w32font_list_internal, w32font_match_internal): Set up
match_data.known_fonts if the font spec includes :script that
names one of the non-USB scripts.
(add_font_entity_to_list): If font_matches_spec returns zero
for a font, and we have some fonts in match_data->known_fonts,
consider the font to be a match if it is named in known_fonts.
(font_supported_scripts): Update the Unicode Subranges. In
particular, map bit 74 to 'burmese', as this is the name Emacs
uses, not 'myanmar'. Add a list of scripts that have no USBs
defined for them.
(syms_of_w32font) <Qburmese, Qcuneiform_numbers_and_punctuation>
<Qaegean_number, Qw32_non_USB_fonts>: New symbols.
* lisp/term/w32-win.el (w32-no-usb-subranges): New defconst.
(w32--filter-USB-scripts, w32-find-non-USB-fonts): New functions.
(w32-non-USB-fonts): New defvar.
* lisp/international/fontset.el (setup-default-fontset): Add
more scripts to automatic setup by representative characters.
* doc/emacs/msdos.texi (Windows Fonts): Document
'w32-find-non-USB-fonts' and 'w32-non-USB-fonts'.
* etc/NEWS: Mention 'w32-find-non-USB-fonts' and
'w32-non-USB-fonts'.
Paul Eggert [Tue, 17 Sep 2019 11:01:00 +0000 (04:01 -0700)]
Pacify GCC -Wmaybe-uninitialized
* src/dired.c (directory_files_internal):
Pacify GCC 7.4.0-1ubuntu1~18.04.1 x86-64.
Paul Eggert [Tue, 17 Sep 2019 10:54:41 +0000 (03:54 -0700)]
Don’t round file-system-info counts
* src/fileio.c (blocks_to_bytes): Convert the byte count to an
integer, since we have bignums now. This avoids possible rounding
errors for file systems containing more than 8 PiB or so.
Mattias Engdegård [Tue, 17 Sep 2019 10:01:15 +0000 (12:01 +0200)]
* doc/lispref/searching.texi (Rx Constructs): Fix typo.
Eli Zaretskii [Tue, 17 Sep 2019 09:45:04 +0000 (12:45 +0300)]
; * etc/NEWS: Minor copyedits.
Paul Eggert [Tue, 17 Sep 2019 00:43:56 +0000 (17:43 -0700)]
Fix some file-mode races
* lisp/emacs-lisp/autoload.el (autoload-ensure-file-writeable):
* lisp/files.el (after-find-file):
* lisp/gnus/gnus-start.el (gnus-dribble-read-file):
* lisp/htmlfontify.el (hfy-copy-and-fontify-file):
* lisp/server.el (server-ensure-safe-dir):
Avoid a race when getting file permissions.
Paul Eggert [Tue, 17 Sep 2019 00:22:48 +0000 (17:22 -0700)]
vc-cvs-revert: fix off-by-one file mode
* lisp/vc/vc-cvs.el (vc-cvs-revert): 3950 (#o7556) is wrong as
it keeps other-write but disables other-execute permissions.
3949 (#o7555) was intended here. Use octal notation for clarity.
Lars Ingebrigtsen [Mon, 16 Sep 2019 23:39:37 +0000 (01:39 +0200)]
Fix imenu menu when we're auto-refreshing
* lisp/imenu.el (imenu--make-index-alist): Don't add a *Refresh*
item if we're auto-refreshing (bug#30449).
Lars Ingebrigtsen [Mon, 16 Sep 2019 23:26:43 +0000 (01:26 +0200)]
Add a new variable smtpmail-retries
* doc/misc/smtpmail.texi (Server workarounds): Mention it (bug#34177).
* lisp/mail/smtpmail.el (smtpmail-retries): New variable.
(smtpmail-via-smtp): Use it.
Michał Kondraciuk [Mon, 16 Sep 2019 23:13:08 +0000 (01:13 +0200)]
Allow `M-u' to work when editing fields in Customize
* lisp/cus-edit.el (custom-notify): Allow more editing commands to
work in the Customize buffers (bug#31205).
Copyright-paperwork-exempt: yes
Lars Ingebrigtsen [Mon, 16 Sep 2019 21:45:34 +0000 (23:45 +0200)]
Try resending when getting a transient 4xx SMTP code
* lisp/mail/smtpmail.el (smtpmail-via-smtp): Try resending when
getting a transient error message (bug#34177).
Paul Eggert [Mon, 16 Sep 2019 21:04:04 +0000 (14:04 -0700)]
Remove obsolete Lint directives
Most of the directives were wrong anyway. Apparently
traditional lint hasn’t been used to check Emacs for years.
* src/callint.c (Finteractive):
* src/cm.c (evalcost):
* src/emacs.c (main):
* src/eval.c (call1, call2, call3, call4, call5, call6, call7, call8):
* src/fns.c (concat2, concat3, nconc2):
* src/term.c (calculate_ins_del_char_costs):
Omit ARGSUSED comments.
* src/eval.c (call1): Omit VARARGS comment.
Tino Calancha [Mon, 16 Sep 2019 20:57:25 +0000 (22:57 +0200)]
Add backquote tests
* test/lisp/emacs-lisp/backquote-tests.el: New file (bug#37432).
Paul Eggert [Mon, 16 Sep 2019 20:54:57 +0000 (13:54 -0700)]
directory-files cleanup and speed tweaking
* src/dired.c (directory_files_internal):
Check ‘match’ before doing anything heavyweight.
Move decls closer to use.
Remove obsolete comments about GC.
No need to encode ‘directory’ or to call multibyte_chars_in_text.
Remove no-longer-needed bug check.
Skip finalname construction if file_attributes fails.
Lars Ingebrigtsen [Mon, 16 Sep 2019 20:31:29 +0000 (22:31 +0200)]
mm-inline-large-images-proportion doc clarification
* lisp/gnus/mm-view.el (mm-inline-large-images-proportion): Doc
clarification.
Lars Ingebrigtsen [Mon, 16 Sep 2019 20:30:04 +0000 (22:30 +0200)]
Default to rescaling images in mm buffers
* doc/misc/emacs-mime.texi (Display Customization): Document it.
* lisp/gnus/mm-decode.el (mm-inline-large-images): Change default
to `resize'.
Lars Ingebrigtsen [Mon, 16 Sep 2019 20:22:54 +0000 (22:22 +0200)]
mm-inline-large-images doc string clarification
* lisp/gnus/mm-decode.el (mm-inline-large-images): Clarify doc string.
Mauro Aranda [Mon, 16 Sep 2019 20:17:51 +0000 (22:17 +0200)]
With tooltip-mode disabled, don't unconditionally clear the echo area
* lisp/tooltip.el (tooltip-show-help-non-mode): Only clear the
echo area when the current message displayed is a tooltip message
(Bug#3192).
Lars Ingebrigtsen [Mon, 16 Sep 2019 20:08:57 +0000 (22:08 +0200)]
Minor fix for previous maintaining.texi change
* doc/emacs/maintaining.texi (VC Directory Commands): Use @file
for files.
Lars Ingebrigtsen [Mon, 16 Sep 2019 20:02:19 +0000 (22:02 +0200)]
Document vc-dir-ignore
* doc/emacs/maintaining.texi (VC Directory Commands): Document
vc-dir-ignore.
Eli Zaretskii [Mon, 16 Sep 2019 19:19:16 +0000 (22:19 +0300)]
Improve error reporting in file_accessible_directory_p
* src/w32.c (w32_accessible_directory_p): Set errno, so that
file_accessible_directory_p does on MS-Windows, to live up to
its callers' expectations.
Eli Zaretskii [Mon, 16 Sep 2019 14:51:25 +0000 (17:51 +0300)]
Fix initialization of shared-game-score-directory on MS-Windows
* src/callproc.c (init_callproc) [WINDOWSNT]: Run PATH_GAME
through w32_relocate, to expand %emacs_dir%.
[DOS_NT]: Accept EACCES as not "unusual" errno value.
Reported by Richard Copley <rcopley@gmail.com>.
Michael Albinus [Mon, 16 Sep 2019 13:00:37 +0000 (15:00 +0200)]
; Disable traces in shadowfile-tests
Lars Ingebrigtsen [Mon, 16 Sep 2019 12:32:17 +0000 (14:32 +0200)]
Remove NEWS entry that talks about a change that was reverted (bug#37257)
Robert Pluim [Mon, 16 Sep 2019 07:58:09 +0000 (09:58 +0200)]
Add bindings for ligature oe to iso-transl-char-map
* lisp/international/iso-transl.el (iso-transl-char-map): Add bindings
for small and capital ligature oe. (Bug#23420)
Paul Eggert [Mon, 16 Sep 2019 05:15:04 +0000 (22:15 -0700)]
Fix some file-name-case-insensitive glitches
* src/fileio.c (file_name_directory): New static function,
broken out of Ffile_name_directory.
(file_name_case_insensitive_err, Ffile_writable_p, Fdo_auto_save):
Use it.
(file_name_case_insensitive_err): Rename from
file_name_case_insensitive_p. Accept an unencoded Lisp_Object
rather than an encoded char *, so that platforms other than
Cygwin and macOS need not encode the file name. Return an int
-1, 0, errno rather than a bool (setting errno if false),
so that the caller can distinguish an error from false.
All callers changed.
(Ffile_name_case_insensitive_p): Don’t issue system calls on
platforms other than Cygwin and macOS. Fix bug that broke the
attempt to move up the filesystem tree (it moved up only one
level).
Stefan Kangas [Mon, 16 Sep 2019 04:55:02 +0000 (06:55 +0200)]
; * etc/NEWS: Fix typo.
Paul Eggert [Mon, 16 Sep 2019 03:17:43 +0000 (20:17 -0700)]
Fix unknown-vs-nonexistent glitch for file timestamps
* src/fileio.c (time_error_value): EACCES means the file
timestamp is unknown, not that the file does not exist.
Paul Eggert [Mon, 16 Sep 2019 03:12:07 +0000 (20:12 -0700)]
Improve directory-access diagnostics
* src/callproc.c (init_callproc): Diagnose I/O errors,
access errors, etc. for the game directory.
* src/charset.c (init_charset): Improve quality of diagnostic
when the charsets directory has I/O errors, access errors, etc.
Glenn Morris [Sun, 15 Sep 2019 23:38:23 +0000 (16:38 -0700)]
Merge from origin/emacs-26
30c4f35 (origin/emacs-26) query-replace-regexp undo: Update next-repl...
c596be0 Amend the menu caption for page "Display Property" in the Eli...
13b9510 Add description of chinese-sisheng
Glenn Morris [Sun, 15 Sep 2019 23:38:23 +0000 (16:38 -0700)]
; Merge from origin/emacs-26
The following commit was skipped:
7e527af Fix non-deterministic process test
Glenn Morris [Sun, 15 Sep 2019 23:38:20 +0000 (16:38 -0700)]
Merge from origin/emacs-26
8e420c0 Clarify the use of left/right-margin-width in determining cur...
Glenn Morris [Sun, 15 Sep 2019 23:38:20 +0000 (16:38 -0700)]
; Merge from origin/emacs-26
The following commit was skipped:
0c3fc71 ; Bump Emacs version to 26.3.50
Glenn Morris [Sun, 15 Sep 2019 23:36:06 +0000 (16:36 -0700)]
* admin/upload-manuals: Move a basic check earlier.
Juanma Barranquero [Sun, 15 Sep 2019 18:37:26 +0000 (20:37 +0200)]
* lisp/subr.el (major-mode-suspend): Doc fix
Michael Albinus [Sun, 15 Sep 2019 14:52:22 +0000 (16:52 +0200)]
Use also truname of temporary-file-directory in shadowfile-tests.el
* test/lisp/shadowfile-tests.el (top): Use truename of
`temporary-file-directory' and
`shadow-test-remote-temporary-file-directory'. (Bug#37202)
(shadow-test08-shadow-todo, shadow-test09-shadow-copy-files):
Do not bind `shadow-test-remote-temporary-file-directory'.
Mauro Aranda [Sun, 15 Sep 2019 13:21:08 +0000 (15:21 +0200)]
Make widget-browse-at always detect an editable-field
* lisp/wid-browse.el (widget-browse-at): Also look for the real-field
property when detecting a field (bug#37199).
Wolfgang Scherer [Sun, 15 Sep 2019 13:14:44 +0000 (15:14 +0200)]
Do not use error messages as list of ignored files in vc-svn
* lisp/vc/vc-svn.el: (vc-svn-ignore-completion-table) Ignore buffer
contents, if exit status is not 0. Split buffer by lines (bug#37214).
Wolfgang Scherer [Sun, 15 Sep 2019 13:03:33 +0000 (15:03 +0200)]
Fix vc-default-ignore
* lisp/vc/vc.el: (vc-default-ignore) Treat FILE parameter as relative
to DIRECTORY parameter. Construct a file-path relative to directory
of ignore file. When removing, use properly anchored regexp. Remove
entire line, not just the match (bug#37217).
Wolfgang Scherer [Sun, 15 Sep 2019 13:00:20 +0000 (15:00 +0200)]
Provide facility to ignore all marked files in vc
* lisp/vc/vc-dir.el: (vc-dir-ignore) With prefix argument, ignore all
marked files (bug#37240).
Lars Ingebrigtsen [Sun, 15 Sep 2019 12:11:14 +0000 (14:11 +0200)]
Revert "emacsclient: ignore --eval parameters when starting alternate editor"
This reverts commit
6fe661342a24edcaea255c3ba9a37613031554da.
The alternate editor may be Emacs, which is useful when you want to eval something in an existing Emacs (if it exists), or in a new Emacs if there's no server running.
Paul Eggert [Sun, 15 Sep 2019 05:00:20 +0000 (22:00 -0700)]
file_name_case_insensitive_p int->long fix
* src/fileio.c (file_name_case_insensitive_p):
Don’t assume ‘long int’ fits in ‘int’.
Paul Eggert [Sat, 14 Sep 2019 17:55:53 +0000 (10:55 -0700)]
Fix gc-elapsed rounding bug
* src/alloc.c (garbage_collect): Don’t accumulate rounding
errors when computing gc-elapsed.
Paul Eggert [Sat, 14 Sep 2019 17:53:24 +0000 (10:53 -0700)]
Improve doc of GC thresholds
* doc/lispref/internals.texi (Garbage Collection), etc/NEWS:
Warn that control over GC is only approximate.
Bruno Félix Rezende Ribeiro [Sat, 14 Sep 2019 15:00:40 +0000 (17:00 +0200)]
Fix picon installation instructions in the Gnus manual
* doc/misc/gnus.texi (Picons): Fix instructions for installing
picons on Debian (bug#37247).
Copyright-paperwork-exempt: yes
Basil L. Contovounesios [Sat, 14 Sep 2019 14:55:24 +0000 (16:55 +0200)]
Fix fileless eww form submission
* lisp/net/eww.el (eww-submit): Ignore file inputs with no
associated file name (bug#36520).
Lars Ingebrigtsen [Sat, 14 Sep 2019 14:48:21 +0000 (16:48 +0200)]
Add default foreground colours to SVG images
* lisp/net/shr.el (svg--wrap-svg): Add a default foreground colour
to SVG images (bug#37159). This helps with images like the ones
in https://en.wikipedia.org/wiki/Banach_fixed-point_theorem that
specify no foreground or background colours.
(shr-parse-image-data): Use it.
Lars Ingebrigtsen [Sat, 14 Sep 2019 14:07:34 +0000 (16:07 +0200)]
Make eww more liberal when interpreting some invalid HTML
* lisp/net/eww.el (eww--preprocess-html): New function (bug#37009)
to be more lenient with invalid HTML and translate common invalid
HTML like "a <= b" into "a <= b" to be more liberal in what we
accept before parsing.
(eww-display-html): Use it.
(eww-readable): Ditto.
Eli Zaretskii [Sat, 14 Sep 2019 14:04:30 +0000 (17:04 +0300)]
* src/print.c (PRINT_CIRCLE_CANDIDATE_P): Fix a thinko. (Bug#36566)
Tobias Zawada [Sat, 14 Sep 2019 12:20:03 +0000 (14:20 +0200)]
Add a debug declaration to widget-specify-insert
* lisp/wid-edit.el (widget-specify-insert): Add a debug
declaration (bug#37368).
Copyright-paperwork-exempt: yes
Eli Zaretskii [Sat, 14 Sep 2019 08:21:40 +0000 (11:21 +0300)]
; * etc/NEWS: Fix last change.
Federico Tedin [Tue, 3 Sep 2019 22:18:11 +0000 (00:18 +0200)]
Allow gamegrid-add-score to treat lower scores as better.
* lisp/play/gamegrid.el (gamegrid-add-score): Add 'reverse' parameter.
(gamegrid-add-score-with-update-game-score): Add 'reverse' parameter.
(gamegrid-add-score-with-update-game-score-1): Add 'reverse'
parameter. Pass on "-r" argument to update-game-score.
(gamegrid-add-score-insecure): Add 'reverse' parameter, reverse scores
when it's non-nil. (Bug#36867)
* etc/NEWS: Announce the change.
Paul Eggert [Sat, 14 Sep 2019 07:32:01 +0000 (00:32 -0700)]
Improve gc-cons-percentage calculation
The old calculation relied on a hodgpodge of partly updated GC
stats to find a number to multiply gc-cons-percentage by.
The new one counts data found by the previous GC, plus half of
the data allocated since then; this is more systematic albeit
still ad hoc.
* src/alloc.c (consing_until_gc, gc_threshold, consing_threshold):
Now EMACS_INT, not intmax_t.
(HI_THRESHOLD): New macro.
(tally_consing): New function.
(make_interval, allocate_string, allocate_string_data)
(make_float, free_cons, allocate_vectorlike, Fmake_symbol): Use it.
(allow_garbage_collection, inhibit_garbage_collection)
(consing_threshold, garbage_collect):
Use HI_THRESHOLD rather than INTMAX_MAX.
(consing_threshold): New arg SINCE_GC. All callers changed.
(bump_consing_until_gc): Return new consing_until_gc, instead of
nil. All callers changed. Don’t worry about overflow since we
now saturate at HI_THRESHOLD. Guess that half of
recently-allocated objects are still alive, instead of relying on
the previous (even less-accurate) hodgepodge.
(maybe_garbage_collect): New function.
(garbage_collect): Work even if a finalizer disables or enables
memory profiling. Do not use malloc_probe if GC reclaimed nothing.
* src/lisp.h (maybe_gc): Call maybe_garbage_collect instead
of garbage_collect.
Paul Eggert [Fri, 13 Sep 2019 23:09:48 +0000 (16:09 -0700)]
Simplify GC statistics-gathering
* src/alloc.c (make_interval, allocate_string, make_float)
(free_cons, Fcons, setup_on_free_list)
(allocate_vector_from_block, Fmake_symbol):
Do not update gcstat, since it is for statistics from the most
recent GC, not for a partially-updated hodgepodge.
(sweep_vectors): Update gcstat, since setup_on_free_list
no longer does.
(garbage_collect_1): Rename to garbage_collect and adopt its API.
Remove the old garbage_collect, which is no longer needed.
All callers changed.
Gemini Lasswell [Sun, 4 Aug 2019 04:39:29 +0000 (21:39 -0700)]
Don't build print-number-table unless it will be used
There are only a few users of print-number-table, and none of them use
it when print-circle is nil. A couple of them used to. print_object
was changed in 2012-04-20 "* src/print.c (print_preprocess): Only
check print_depth if print-circle is nil".
byte-compile-output-docform which uses print-number-table binds
print-circle to t before printing unless
byte-compile-disable-print-circle is set, but that variable has been
marked obsolete since 24.1.
* src/print.c (print_preprocess): Assert Vprint_circle is non-nil.
Remove code handling the case when Vprint_circle is nil.
(print, Fprint_preprocess): Don't call print_preprocess unless
Vprint_circle is non-nil.
(print_object): Remove comment referencing removed code in
print_preprocess.
Gemini Lasswell [Sun, 4 Aug 2019 22:56:12 +0000 (15:56 -0700)]
Create common tests for print.c and cl-print.el
* test/lisp/emacs-lisp/cl-print-tests.el
(cl-print--test, cl-print-tests-1, cl-print-tests-2)
(cl-print-tests-3, cl-print-tests-4, cl-print-tests-5)
(cl-print-tests-strings, cl-print-circle, cl-print-circle-2):
Remove.
* test/src/print-tests.el (print-tests--prin1-to-string): New
alias.
(print-tests--deftest): New macro.
(print-hex-backslash, print-read-roundtrip, print-bignum): Define with
print-tests--deftest and use print-tests--prin1-to-string.
(print-tests--prints-with-charset-p): Use
print-tests--prin1-to-string.
(print-tests--print-charset-text-property-nil)
(print-tests--print-charset-text-property-t)
(print-tests--print-charset-text-property-default): Define with
print-tests--deftest.
(print-tests-print-gensym)
(print-tests-continuous-numbering, print-tests-1, print-tests-2)
(print-tests-3, print-tests-4, print-tests-5)
(print-tests-strings, print-circle, print-circle-2): New tests.
(print--test, print-tests-struct): New cl-defstructs.
Gemini Lasswell [Sat, 3 Aug 2019 19:33:20 +0000 (12:33 -0700)]
Fix unnecessary hash table creation in cl-prin1 (bug#36566)
cl-prin1 prints all its punctuation by passing strings to prin1. When
print-circle was set, print_preprocess was creating a new hash table
for each string, causing excessive garbage collection when printing
large Lisp objects with cl-prin1.
* src/print.c (print_number_index): Fix typo in comment above.
(PRINT_CIRCLE_CANDIDATE_P): Don't create print_number_table
for top-level strings with no properties, except when
print_continuous_numbering is on.
Gemini Lasswell [Tue, 30 Jul 2019 18:56:51 +0000 (11:56 -0700)]
Improve performance of backtrace printing (bug#36566)
* lisp/emacs-lisp/cl-print.el (cl-print-to-string-with-limit): Reduce
print-level and print-length more quickly when the structure being
printed is very large.
Gemini Lasswell [Tue, 30 Jul 2019 17:00:27 +0000 (10:00 -0700)]
Improve print output options commands in backtrace-mode (bug#36566)
* lisp/emacs-lisp/backtrace.el (backtrace-view): Mention
:print-gensym in docstring.
(backtrace-mode-map): Add keyboard binding for
backtrace-toggle-print-gensym. Add menu entries for
backtrace-toggle-print-circle and backtrace-toggle-print-gensym.
(backtrace--with-output-variables): Bind print-gensym with value
of :print-gensym found in view plist.
(backtrace-toggle-print-circle): Remove description of
implementation details from docstring.
(backtrace-toggle-print-gensym): New command.
(backtrace--toggle-feature): Add echo area message describing result
of command.
* test/lisp/emacs-lisp/backtrace-tests.el
(backtrace-tests--print-circle): New test.
* doc/lispref/debugging.texi (Backtraces): Document keyboard
binding for backtrace-toggle-print-gensym.
Stefan Kangas [Mon, 1 Jul 2019 06:45:24 +0000 (08:45 +0200)]
* lisp/help-mode.el (help-mode-menu): Fix typo. (Bug#36485)
Stefan Kangas [Thu, 22 Aug 2019 14:11:52 +0000 (16:11 +0200)]
* doc/misc/efaq.texi: Update ancient formats. (Bug#37143)
Stefan Kangas [Fri, 13 Sep 2019 16:06:31 +0000 (18:06 +0200)]
Remove leftover XEmacs compat code and doc fixes
* lisp/mail/feedmail.el (top-level): Remove outdated comment.
(feedmail-run-the-queue): Remove leftover XEmacs compat code.
(feedmail-nuke-bcc): Doc fix.
* lisp/emulation/viper.el (top-level, viper-mode)
* lisp/net/rfc2104.el (top-level): Doc fix.
* lisp/textmodes/table.el (top-level): Remove obsolete todo.
Stefan Kangas [Fri, 13 Sep 2019 12:53:41 +0000 (14:53 +0200)]
Change gui--selection-value-internal comment into doc string
* lisp/select.el (gui--selection-value-internal): Change comment into
doc string. (Bug#25528)
Michael Albinus [Fri, 13 Sep 2019 12:33:06 +0000 (14:33 +0200)]
; Fix a typo by last commit
Michael Albinus [Fri, 13 Sep 2019 12:25:56 +0000 (14:25 +0200)]
; Add traces in shadowfile.el
Michael Albinus [Fri, 13 Sep 2019 10:08:34 +0000 (12:08 +0200)]
Fix problems in tramp-test33-environment-variables
* test/lisp/net/tramp-tests.el (tramp-test33-environment-variables):
Use ${parameter:-word} construct. Remove PS1 entry from
"printenv" output.
(tramp--test-check-files): Use "printenv".
Michael Albinus [Fri, 13 Sep 2019 10:08:02 +0000 (12:08 +0200)]
Make recent Tramp patch work for tramp-archive.el
* lisp/net/tramp.el (tramp-connectable-p): Make it work also for
tramp-archive.el.